package com.hotel.bean;

import cn.hutool.core.annotation.Alias;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department {
    /**
     * 部门did
     */
    @Alias("部门ID")
    private Integer did;
    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空")
    @Alias("部门名称")
    private String dname;
}
